package com.mer.service;

import com.mer.entity.User;
import com.mer.vo.CommonResult;
import com.mer.vo.RoleVo;
import com.mer.vo.UserRoleVo;
import com.mer.vo.UserVo;
import io.swagger.models.auth.In;


/**
 * @program: IIPhase-project
 * @description:
 * @author: 冯彦凯
 * @create: 2021-10-20 19:16
 **/
public interface UserService {
    CommonResult getAllUserByPage(Integer page, Integer limit, UserVo userVo);

    CommonResult addUserByUser(User user);

    CommonResult updateUserByUser(User user);

    CommonResult updateUserStatusById(String id, Integer deleted);

    CommonResult deleteUserById(String id);

    CommonResult findRoleByUserId(String userId);

    CommonResult findRoleByRoleName(Integer page,Integer limit,RoleVo roleVo);

    CommonResult giveRoleToUser(UserRoleVo userRoleVo);
}
